package sprites;

import java.awt.image.BufferedImage;

import com.golden.gamedev.object.Sprite;

import engine.TowerDefense;

/**
 * A bullet.
 * 
 * @author Alex Lee (hl69)
 */
public abstract class Projectile extends Sprite
{
	/*
	 * The owner.
	 */
	TowerDefense myOwner;

	/*
	 * The amount of damage that this projectile deals.
	 */
	int damage;
	
	/*
	 * The projectile's image.
	 */
	BufferedImage myImage;
	
	/**
	 * Constructs a new projectile.
	 * @param img the sprite image
	 * @param x x-coordinate
	 * @param y y-coordinate
	 * @param v velocity
	 * @param dmg damage
	 */
	public Projectile(TowerDefense owner, BufferedImage image,
			double x, double y, int dmg)
	{
		super(image, x, y);
		
		myOwner = owner;
		myImage = image;
		damage = dmg;
	}
	
	public int getDamage()
	{
		return damage;
	}

}
